<page-header [action]="phActionTpl">
  <ng-template #phActionTpl>
    <button (click)="add()" nz-button nzType="primary">新建</button>
    <button (click)="query()" nz-button nzType="primary">搜索</button>
  </ng-template>
</page-header> 

<nz-modal [(nzVisible)]="isBkVisible" nzTitle="板块新增" (nzOnCancel)="handleCancel()" [nzFooter] = "null">
  <sf #addsf button="none"  [schema]="newBkSchema"></sf>
  <div class="modal-footer">
    <button nz-button type="submit" [nzType]="'primary'" (click)="saveAdd(addsf.value)" [disabled]="!addsf.valid">
    <i nz-icon nzType="save"></i>保 存
    </button>
  </div>
</nz-modal>

<nz-modal [(nzVisible)]="isUpVisible" nzTitle="板块修改" (nzOnCancel)="handleCancel()" [nzFooter] = "null">
  <sf #upsf button="none"  [schema]="updateBkSchema"></sf>
  <div class="modal-footer">
    <button nz-button type="submit" [nzType]="'primary'" (click)="saveUp(upsf.value)" [disabled]="!upsf.valid">
    <i nz-icon nzType="save"></i>保 存
    </button>
  </div>
</nz-modal>

<nz-card>
  <sf #sf mode="search" [schema]="searchSchema" button="none"></sf>
  <lb-grid #st [columns]="columns" [sname]= "param.sname" [queryparas] = "param.queryparas"></lb-grid>
</nz-card>